package com.example.braden.answergame.common;

import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;

/**
 * Created by braden on 2018/1/8.
 * 图片加载类，统一适配
 */

public class ImageLoader {
    public static void load(Context context, String imgUrl, int errorImg, ImageView imageView) {
        try {
            Glide.with(context).load(imgUrl)
                    .into(imageView);
//            Picasso.get().load(imgUrl).into(imageView);
        } catch (Exception ex) {
            LogUtils.e("imageload:" + ex.toString());
        }
    }
}

